Ensure that a dependency is generated even when using --as-needed,
by adding a fake function that calls into the library.
https://bugzilla.gnome.org/show_bug.cgi?id=639324
Was accidentally removed, as part of the switch to building
a gnome-shell binary, reapplying the original patch. - Owen
https://bugzilla.gnome.org/show_bug.cgi?id=645596
return &info;
}
+
+#if HAVE_BLUETOOTH
+/* HACK:
+ Add a non-static function that calls into libgnome-bluetooth-applet.so,
+ to avoid the linker being too smart and removing the dependency.
+ This function is never actually called.
+*/
+extern GType bluetooth_applet_get_type(void);
+void _shell_link_to_bluetooth(void);
+
+void _shell_link_to_bluetooth(void) {
+ bluetooth_applet_get_type();
+}
+#endif